<div id="showPartContent"></div>
<script type="text/html" id="partContent">
    <form id="part_form_lay" class="layui-form layui-form-pane kaige-body-form" style="padding: 5px;"
          lay-filter="part_form_lay_filter">
        <input type="hidden" id="id" value="{{ d.id || '' }}" name="id"/>
        <input type="hidden" id="product_id" value="{{ d.product_id || '' }}" name="product_id"/>
        <div class="layui-form-item">
            <label class="layui-form-label">配件名称</label>
            <div class="layui-input-block">
                <input id="name" name="name" value="{{ d.name || '' }}" class="layui-input" type="text">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">配件描述</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea"
                          name="description">{{ d.description || '' }}</textarea>
            </div>
        </div>

        <div class="layui-form-item" id="form_files_gl_html"></div>

        <div class="layui-form-item layui-hide">
            <button class="layui-hide" lay-submit="" id="part_form_btn_save" lay-filter="part_form_btn_save">保存数据
            </button>
        </div>
    </form>
</script>